# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>

pkgname=xmldiff
pkgver=2.6.1
pkgrel=1
pkgdesc="A python tool that figures out the differences between two similar XML files, in the same way the diff utility does it"
arch=('loong64' 'x86_64')
url="https://github.com/Shoobx/xmldiff"
license=('GPL2')
depends=('python' 'libxslt' 'jade' 'python-setuptools' 'python-lxml' 'python-six')
optdepends=('docbook-xsl: render revision info')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Shoobx/xmldiff/archive/$pkgver.tar.gz")
sha512sums=('f92c0d45bf96248de7fda33253318ebbce30afaf7240e35643dc9d7373bfcefadb4837d008f90683c71555753b7e29f94dfda544f0a585e199f0c8329bd0786d')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py build
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python setup.py install --root="$pkgdir/" --optimize=1
}
